/**
 * @author liangxi
 * @since 2023/12/21
 */

#include "Pizza.h"

namespace Factory_SF {

    std::string Pizza::toString() const {
        std::string res;
        res += "----" + this->name + "----\n";
        res += this->dough + "\n";
        res += this->sauce + "\n";
        for (const auto &item: this->toppings) {
            res += item + "\n";
        }
        return res;
    }
} // Factory_SF